Optimal. Leaf size=84 \[ -\frac {\left (c+d x^2\right )^{3/2} \left (-5 d (a B+A b)+2 b B c-3 b B d x^2\right )}{15 d^2}+a A \sqrt {c+d x^2}-a A \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 84, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.172, Rules used = {573, 147, 50, 63, 208} \[ -\frac {\left (c+d x^2\right )^{3/2} \left (-5 d (a B+A b)+2 b B c-3 b B d x^2\right )}{15 d^2}+a A \sqrt {c+d x^2}-a A \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 50
Rule 63
Rule 147
Rule 208
Rule 573
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2\right ) \left (A+B x^2\right ) \sqrt {c+d x^2}}{x} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {(a+b x) (A+B x) \sqrt {c+d x}}{x} \, dx,x,x^2\right )\\ &=-\frac {\left (c+d x^2\right )^{3/2} \left (2 b B c-5 (A b+a B) d-3 b B d x^2\right )}{15 d^2}+\frac {1}{2} (a A) \operatorname {Subst}\left (\int \frac {\sqrt {c+d x}}{x} \, dx,x,x^2\right )\\ &=a A \sqrt {c+d x^2}-\frac {\left (c+d x^2\right )^{3/2} \left (2 b B c-5 (A b+a B) d-3 b B d x^2\right )}{15 d^2}+\frac {1}{2} (a A c) \operatorname {Subst}\left (\int \frac {1}{x \sqrt {c+d x}} \, dx,x,x^2\right )\\ &=a A \sqrt {c+d x^2}-\frac {\left (c+d x^2\right )^{3/2} \left (2 b B c-5 (A b+a B) d-3 b B d x^2\right )}{15 d^2}+\frac {(a A c) \operatorname {Subst}\left (\int \frac {1}{-\frac {c}{d}+\frac {x^2}{d}} \, dx,x,\sqrt {c+d x^2}\right )}{d}\\ &=a A \sqrt {c+d x^2}-\frac {\left (c+d x^2\right )^{3/2} \left (2 b B c-5 (A b+a B) d-3 b B d x^2\right )}{15 d^2}-a A \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.16, size = 91, normalized size = 1.08 \[ \frac {\sqrt {c+d x^2} \left (5 a d \left (3 A d+B \left (c+d x^2\right )\right )-b \left (c+d x^2\right ) \left (-5 A d+2 B c-3 B d x^2\right )\right )}{15 d^2}-a A \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.66, size = 217, normalized size = 2.58 \[ \left [\frac {15 \, A a \sqrt {c} d^{2} \log \left (-\frac {d x^{2} - 2 \, \sqrt {d x^{2} + c} \sqrt {c} + 2 \, c}{x^{2}}\right ) + 2 \, {\left (3 \, B b d^{2} x^{4} - 2 \, B b c^{2} + 15 \, A a d^{2} + 5 \, {\left (B a + A b\right )} c d + {\left (B b c d + 5 \, {\left (B a + A b\right )} d^{2}\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{30 \, d^{2}}, \frac {15 \, A a \sqrt {-c} d^{2} \arctan \left (\frac {\sqrt {-c}}{\sqrt {d x^{2} + c}}\right ) + {\left (3 \, B b d^{2} x^{4} - 2 \, B b c^{2} + 15 \, A a d^{2} + 5 \, {\left (B a + A b\right )} c d + {\left (B b c d + 5 \, {\left (B a + A b\right )} d^{2}\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{15 \, d^{2}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.57, size = 113, normalized size = 1.35 \[ \frac {A a c \arctan \left (\frac {\sqrt {d x^{2} + c}}{\sqrt {-c}}\right )}{\sqrt {-c}} + \frac {3 \, {\left (d x^{2} + c\right )}^{\frac {5}{2}} B b d^{8} - 5 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} B b c d^{8} + 5 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} B a d^{9} + 5 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} A b d^{9} + 15 \, \sqrt {d x^{2} + c} A a d^{10}}{15 \, d^{10}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 112, normalized size = 1.33 \[ -A a \sqrt {c}\, \ln \left (\frac {2 c +2 \sqrt {d \,x^{2}+c}\, \sqrt {c}}{x}\right )+\frac {\left (d \,x^{2}+c \right )^{\frac {3}{2}} B b \,x^{2}}{5 d}+\sqrt {d \,x^{2}+c}\, A a +\frac {\left (d \,x^{2}+c \right )^{\frac {3}{2}} A b}{3 d}+\frac {\left (d \,x^{2}+c \right )^{\frac {3}{2}} B a}{3 d}-\frac {2 \left (d \,x^{2}+c \right )^{\frac {3}{2}} B b c}{15 d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.37, size = 100, normalized size = 1.19 \[ \frac {{\left (d x^{2} + c\right )}^{\frac {3}{2}} B b x^{2}}{5 \, d} - A a \sqrt {c} \operatorname {arsinh}\left (\frac {c}{\sqrt {c d} {\left | x \right |}}\right ) + \sqrt {d x^{2} + c} A a - \frac {2 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} B b c}{15 \, d^{2}} + \frac {{\left (d x^{2} + c\right )}^{\frac {3}{2}} B a}{3 \, d} + \frac {{\left (d x^{2} + c\right )}^{\frac {3}{2}} A b}{3 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.48, size = 101, normalized size = 1.20 \[ \sqrt {d\,x^2+c}\,\left (\frac {B\,b\,x^4}{5}+\frac {B\,c\,\left (5\,a\,d-2\,b\,c\right )}{15\,d^2}+\frac {B\,x^2\,\left (5\,a\,d+b\,c\right )}{15\,d}\right )+A\,a\,\sqrt {d\,x^2+c}-A\,a\,\sqrt {c}\,\mathrm {atanh}\left (\frac {\sqrt {d\,x^2+c}}{\sqrt {c}}\right )+\frac {A\,b\,{\left (d\,x^2+c\right )}^{3/2}}{3\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 54.08, size = 97, normalized size = 1.15 \[ \frac {A a c \operatorname {atan}{\left (\frac {\sqrt {c + d x^{2}}}{\sqrt {- c}} \right )}}{\sqrt {- c}} + A a \sqrt {c + d x^{2}} + \frac {B b \left (c + d x^{2}\right )^{\frac {5}{2}}}{5 d^{2}} + \frac {\left (c + d x^{2}\right )^{\frac {3}{2}} \left (2 A b d + 2 B a d - 2 B b c\right )}{6 d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________